<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="__PUBLIC__/boot/css/bootstrap.min.css">
    <script src="__PUBLIC__/boot/js/jquery.min.js"type="text/javascript"/>
    <script src="__PUBLIC__/boot/js/bootstrap.js" type="text/javascript"></script>
    <title></title>
</head>
<body>
<h1>用户管理界面</h1>
<table id="users" class="table table-striped table-bordered dataTable">
    <thead>
    <tr>
        <td>头像</td>
        <td>用户名</td>
        <td>真实姓名</td>
        <td>邮箱</td>
        <td>电话</td>
        <td>状态</td>
        <td>审核信息</td>
        <td>明星作者</td>
        <td>首页推荐</td>
        <td>操作</td>

    </tr>
    </thead>
    <tbody>
    <volist name="users" id="vo">
        <tr>
            <td><img src="__PUBLIC__/Uploads/photo/{$vo.photo}" width="100px"height="100px"></td>
            <!--_public_自动对应文件夹-->
            <td>{$vo.username}</td>
            <!--{$vo['username']}-->
            <td>{$vo.realname}</td>
            <td>{$vo.email}</td>
            <td>{$vo.tele}</td>
            <td>
                <if condition="$vo.state eq 0">禁用
                    <elseif condition="$vo.state eq 1"/>普通
                    <else/>禁言
                </if>
            </td>
            <td>{$vo.verifyinfo}</td>
            <td>
                <if condition="$vo.isstar eq 0">否
                    <else/>是
                </if>
            </td>
            <td>
                <if condition="$vo.isfirst eq 0">否
                    <else/> 是
                </if>
            </td>
            <td>
                <div class="btn-group">
                    <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                        操作
                        <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu pull-right">
                        <li><a href="updateuserInfo?id={$vo.id}"><i class="icon-envelope"></i>修改</a></li>
                        <li><a href="del?id={$vo.id}"><i class="icon-edit"></i>删除</a></li>
                        <li><span class="glyphicon glyphicon-thumbs-down"></span>
                            <if condition="$vo.isstar eq 0">
                                <a href="setstar?id={$vo.id}">设置明星作者</a>
                                <else/>
                                <a href="unstar?id={$vo.id}">取消明星作者</a>
                            </if>
                        </li>
                        <li><span class="glyphicon glyphicon-star-empty"></span>
                            <if condition="$vo.isfirst eq 0">
                                <a href="setfirst?id={$vo.id}">设置首页推荐</a>
                                <else/>
                                <a href="unfirst?id={$vo.id}">取消首页推荐</a>
                            </if></li>
                        <li><a href="#"><span class="glyphicon glyphicon-remove-sign"></span>
                            <if condition="$vo.state eq 0">取消禁用
                                <elseif condition="$vo.state neq 0 "/>禁用
                                <elseif condition="$vo.state "/>禁言
                            </if>
                        </a></li>
                    </ul>
                </div>
            </td>
        </tr>
    </volist>
    </tbody>
</table>
<div class="pageination">{$page}</div>
</body>
</html>